#include "mainwindow.h"
#include <QApplication>

#include <QtGlobal>
#include <QTextCodec>
#include <QDebug>
#include <QFontDatabase>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    int id = QFontDatabase::addApplicationFont("/usr/share/fonts/DroidSansFallback.ttf");
    QString msyh = QFontDatabase::applicationFontFamilies (id).at(0);
    QFont font(msyh,10);
    qDebug()<<msyh<<endl;
    font.setPointSize(10);
    a.setFont(font);

    MainWindow w;
    w.show();

    return a.exec();
}
